package com.ruoyi.logistic.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.logistic.domain.NetworkPrePayRechargeDeductionAudit;
import com.ruoyi.logistic.domain.PageDate;
import com.ruoyi.logistic.domain.vo.NetworkPrePayRechargeDeductionAuditVo;
import com.ruoyi.logistic.mapper.NetworkPrePayRechargeDeductionAuditMapper;
import com.ruoyi.logistic.service.NetworkPrePayRechargeDeductionAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NetworkPrePayRechargeDeductionAuditServiceImpl implements NetworkPrePayRechargeDeductionAuditService {
    @Autowired
    private NetworkPrePayRechargeDeductionAuditMapper networkPrePayRechargeDeductionAuditMapper;

    @Override
    public List<NetworkPrePayRechargeDeductionAudit> selectAll(PageDate pageDate) {
        PageHelper.startPage(pageDate);
        return networkPrePayRechargeDeductionAuditMapper.selectAll();
    }

    @Override
    public Boolean insert(NetworkPrePayRechargeDeductionAudit sheet) {
        return networkPrePayRechargeDeductionAuditMapper.insert(sheet);
    }

    @Override
    public Boolean update(NetworkPrePayRechargeDeductionAudit sheet) {
        return networkPrePayRechargeDeductionAuditMapper.update(sheet);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return networkPrePayRechargeDeductionAuditMapper.deleteById(id);
    }

    @Override
    public NetworkPrePayRechargeDeductionAudit findById(Integer id) {
        return networkPrePayRechargeDeductionAuditMapper.findById(id);
    }

    @Override
    public List<NetworkPrePayRechargeDeductionAudit> search(NetworkPrePayRechargeDeductionAuditVo vo) {
        PageHelper.startPage(vo.getPageDate());
        return networkPrePayRechargeDeductionAuditMapper.search(vo);
    }
}
